//package com.daocao.hua.impl;
//
//import android.content.Context;
//
//import com.daocao.hua.constant.Const;
//import com.daocao.hua.http.CallBackListener;
//import com.daocao.hua.http.InterfaceServer;
//import com.daocao.hua.http.InfoCallBack;
//import com.daocao.hua.interfaces.LoadImageInfo;
//import com.daocao.hua.http.ResponseListener;
//import com.daocao.hua.model.InitLoadImageModel;
//import com.daocao.hua.model.RequestModel;
//import com.daocao.hua.model.ResponseModel;
//import com.daocao.hua.util.JsonUtil;
//
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * 获取导向页数据
// * Created by Master.Dong on 2016/4/13.
// */
//public class LoadImageInfoImpl implements LoadImageInfo {
//
//    @Override
//    public void getLoadImageInfo(final Context mContext, final InfoCallBack callBack) {
//        Map<String, Object> mapData = new HashMap<String, Object>();
//        mapData.put("act", "l_loading_image");
//        RequestModel model = new RequestModel(mapData);
//        InterfaceServer.getInstance(mContext.getApplicationContext()).requestInterface("", 0, model, Const.DEFAULT_TIMEOUT,new CallBackListener<InitLoadImageModel>(InitLoadImageModel.class,callBack));
////                new ResponseListener() {
////            @Override
////            public void onStartInMainThread(Object result) {
////                callBack.onFailure(result.toString());
////            }
////
////            @Override
////            public void onFinishInMainThread(Object result) {
////            }
////
////            @Override
////            public Object onSuccessInRequestThread(int statusCode, String content) {
////                try {
////                    return JsonUtil.<InitLoadImageModel>fromJson(content, InitLoadImageModel.class);
////                } catch (Exception e) {
////                    return null;
////                }
////            }
////
////            @Override
////            public void onSuccessInMainThread(int statusCode, String content, Object result) {
////                InitLoadImageModel model = (InitLoadImageModel) result;
////
////                try {
////                    if (model.getStatus() == 1) {
////                        callBack.onSuccess(model);
////                        //返回数据接口
////                    } else {
////                        //访问接口失败,此处ignore
////                        callBack.onFailure(model.getMsg());
////                    }
////                } catch (Exception e) {
////                    e.printStackTrace();
////                }
////            }
////        });
//    }
//
//}
